import Foundation

extension RawRepresentable {

    static func dw_enum(_ value : Any) -> Self? {
        return (value as? RawValue).flatMap{Self.init(rawValue: $0)}
    }
    
}
